package bb.lanxing.lib.kt.model;

import com.tencent.open.SocialConstants;
//import com.umeng.umcrash.UMCrash;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

public final class HeartRateData implements IHeartRateData {
    private int heartRate;
    private long timestamp;
    private int source = 2;
    private String deviceAddress = "";

    public static /* synthetic */ HeartRateData copy$default(HeartRateData heartRateData, long j, int i, Object obj) {
        if ((i & 1) != 0) {
            j = heartRateData.timestamp;
        }
        return heartRateData.copy(j);
    }

    public long component1() {
        return this.timestamp;
    }

    public HeartRateData copy(long j) {
        return new HeartRateData(j);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        return (obj instanceof HeartRateData) && this.timestamp == ((HeartRateData) obj).timestamp;
    }

    private static int dataParser(long j) {
        return (int) (j ^ (j >>> 32));
    }

    public int hashCode() {
        return dataParser(this.timestamp);
    }

    public String toString() {
        return "HeartRateData(timestamp=" + this.timestamp + ')';
    }

    public HeartRateData(long j) {
        this.timestamp = j;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public void setTimestamp(long j) {
        this.timestamp = j;
    }

    public int getHeartRate() {
        return this.heartRate;
    }

    public void setHeartRate(int i) {
        this.heartRate = i;
    }

    public int getSource() {
        return this.source;
    }

    public void setSource(int i) {
        this.source = i;
    }

    public String getDeviceAddress() {
        return this.deviceAddress;
    }

    public void setDeviceAddress(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.deviceAddress = str;
    }
}
